/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.groupb.circus.impl_interfaces;

import com.groupb.circus.interfaces.ProcessSearchProfile;
import com.groupb.circus.interfaces.SearchProfile;
import com.groupb.circus.interfaces.SearchResult;
import java.util.List;

/**
 *
 * @author bhavna
 */
public class ProcessSearchProfileDB implements ProcessSearchProfile {
/*
 * clase sin uso
 */
    @Override
    public SearchResult receiveMessage(SearchProfile sp) {
        
        SearchResult sr=null;
        if (sp != null) {
            String keyword = sp.getKeyword();
            List c = null;
            // HERE IS THE SEARCH DONE. CONNECTION TO DDBB
           sr = new SearchResultImpl(c);
        }

        // IF SP IS NULL, SR WILL BE NULL
        return sr;
    }
}
